package com.sc.nft.admin.request;

import com.sc.nft.dto.ActivityTaskPrizeDTO;
import com.sc.nft.enums.EquityPropsTypeEnum;
import com.sc.nft.enums.task.ParticipantsEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AddActivityTaskRequest {

    @ApiModelProperty("任务模板Id")
    @NotNull(message = "任务模板不能为空")
    private Long taskPanelId;

    @ApiModelProperty("任务名称")
    @NotBlank(message = "任务名称不能为空")
    private String name;

    @ApiModelProperty("购买藏品Id")
    private Long buyCollectionId;
    @ApiModelProperty("购买数量")
    private Integer buyCount;
    @ApiModelProperty("消费金额")
    private BigDecimal spendPrice;
    @ApiModelProperty(value = "藏品范围")
    private Boolean collectionRange;
    @ApiModelProperty(value = "商品范围")
    private Boolean mallRange;

    @ApiModelProperty("任务奖励")
    @NotNull(message = "任务奖励不能为空")
    private List<ActivityTaskPrizeDTO> taskPrizeDTOS;
    @ApiModelProperty("权重")
    private Integer sort;
    @ApiModelProperty("任务进度 0无 1每周一0点")
    @NotNull(message = "任务进度不能为空")
    @Range(min = 0,max = 1,message = "任务进度不正确")
    private Integer taskPlan;
    @ApiModelProperty("是否可重复")
    @NotNull(message = "是否可重复不能为空")
    private Boolean repeatFinish ;
    @ApiModelProperty("参与对象UNLIMITED:不限 ,  APPOINT:指定NFT")
    @NotNull(message = "参与对象不能为空")
    private ParticipantsEnum participants;
    @ApiModelProperty("参与指定藏品id")
    private Long partakeCollectionId;

}
